package com.lei.sqlGoodsJsp.service;

import java.util.List;

import com.lei.sqlGoodsJsp.entity.Goods;
import com.lei.sqlGoodsJsp.entity.Page;

public interface GoodsService {
	void add(Goods shopName);

	void delete(Long id);

	void update(Goods id);

	List<Goods> list();
	/**
	 * 分页
	 * @param currentPage 当前页
	 * @param pageSize 每页多少条数据
	 * @return 分类
	 */
	Page<Goods> page(int currentPage,int pageSize);

	Goods getById(Long id);
	
	
}
